//
//  CategoryModel.h
//  Edu_iOS
//
//  Created by yanyan on 2017/9/8.
//  Copyright © 2017年 yanyan. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef enum CategoryCellStyle {
    CategoryCellStyleNone,//不可折叠或展开
    CategoryCellStyleFolded,//折叠状态，可以展开
    CategoryCellStyleUnfolded//展开状态，可以折叠
}CategoryCellStyle;
// model
@interface PrimaryCategoryModel:NSObject <NSCoding>
@property(nonatomic,strong)NSString *modelId;
@property(nonatomic,strong)NSString *title;
@property(nonatomic,strong)NSString *iconURLString;
@property(nonatomic,assign)BOOL selected;//是否选中
@property(nonatomic,strong)NSMutableArray *subCategoryArray;
- (instancetype)initWithObject:(id)obj;
- (instancetype)initWithObject:(id)obj hasAll:(BOOL)flag;

@end

@interface SubCategoryModel:PrimaryCategoryModel
//@property(nonatomic,strong) NSString *title;
@property(nonatomic,assign) CategoryCellStyle folderStyle;//是否可折叠
@property(nonatomic,strong)NSArray *modelArr;
@end
@interface CategoryModel : NSObject

@end
